package com.qhit.pojo;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Tourist {
    private String id;
    private String touristName;
    private String touristSex;
    private String touristIdcard;
    private String touristPhone;
    private Date touristBirthday;

    public String getTouristSex() {
        return touristSex;
    }

    public void setTouristSex(String touristSex) {
        this.touristSex = touristSex;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTouristName() {
        return touristName;
    }

    public void setTouristName(String touristName) {
        this.touristName = touristName;
    }



    public String getTouristIdcard() {
        return touristIdcard;
    }

    public void setTouristIdcard(String touristIdcard) {
        this.touristIdcard = touristIdcard;
    }

    public String getTouristPhone() {
        return touristPhone;
    }

    public void setTouristPhone(String touristPhone) {
        this.touristPhone = touristPhone;
    }

    public Date getTouristBirthday() {
        return touristBirthday;
    }

    public void setTouristBirthday(Date touristBirthday) {
        this.touristBirthday = touristBirthday;
    }
    public void setTouristBirthday1(String touristBirthday) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        try {
            this.touristBirthday = simpleDateFormat.parse(touristBirthday);

        }catch (ParseException e){
            e.printStackTrace();
        }

    }
}